/*
 * @Author       : ljkt
 * @Version      : 1.0
 * @Date         : 2021-10-08 09:29:52
 * @LastEditors: ljkt
 * @LastEditTime: 2025-02-01 22:19:28
 * @Description  :
 */

#ifndef _DEV_IOPRINT_H_
#define _DEV_IOPRINT_H_
#include "Common_Def.h"
// #define EN_PUTCHAR 1 // 使能打印Print公共函数
// #define PRINT_SPEED_LOW // 低速打印,波特率为1000
#ifdef DRV_IOO_SET_NOREG
#define Dev_IoPrint_Tx_Bit(x) (DRV_IOO_SET_NOREG(e_INDEX_IOPRINT, x))
#else
#define Dev_IoPrint_Tx_Bit(x)
#endif

extern void Dev_IoPrint_Init(void);                                                                                   // 初始化
extern void Dev_IoPrint_Baud(void);                                                                                   // 测试波特率
extern void Dev_IoPrint_Hex(unsigned char *addr, unsigned char len);                                                  // 打印一个数组
extern void Dev_IoPrint_Str_DecStr(CONST_RAM char *str, signed long dat);                                             // 打印一个字符串+十进制字符串
extern void Dev_IoPrint_N_Str_DecStr(CONST_RAM char *str, unsigned char offset, signed long *dat, unsigned char cnt); //
extern void Dev_IoPrint_Str_Buf2DecStr(CONST_RAM char *str, unsigned char index, signed long dat);                    //
extern void Dev_IoPrint_Scan(void);                                                                                   // 1ms打印//
extern void Dev_IoPrint_Str_1Byte_Hex(CONST_RAM char *str, unsigned char dat);                                        //
extern void Dev_IoPrint_4Byte_HexStr(CONST_RAM char *str, unsigned long dat);                                         //
extern void Dev_IoPrint_Str_Buf2HexStr(CONST_RAM char *str, signed char *dat, unsigned short len);                    // 打印一个字符串+十六进制数组字符串

#endif
